<div class="productIntros form">
<?php echo $this->ExtendedForm->create('ProductIntro', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Product Intro'); ?></h3>
    <div class="form-group row">
        <div class="col-sm-2">
            <label for="language">Language</label>
            <select name="language" id="language" class="form-control">
                <option value="vietnam">VietNam</option>
                <option value="english">English</option>
                <option value="japan">Japan</option>
            </select>
        </div>
    </div>
	<?php
		if(isset($this->request->params['named']['product_category_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('product_category_id', array_merge(array('label' => __d('admin', 'Product Category')), array('options' => $productCategoriesSelect, 'empty' => '- ' . __d('admin', 'Choose a Product Category') . ' -')));
		if(isset($this->request->params['named']['product_category_id'])) echo '</div>';
    ?>
    <div class="area-language" id="text-vietnam">
    <?php
		if(isset($this->request->params['named']['name'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name', array_merge(array('label' => __d('admin', 'Name'))));
		if(isset($this->request->params['named']['name'])) echo '</div>';

        if(isset($this->request->params['named']['description'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('description', array_merge(array('label' => __d('admin', 'Full Des'))));
		if(isset($this->request->params['named']['description'])) echo '</div>';
    ?>
    </div>
    <div class="area-language" id="text-english" style="display:none">
    <?php    
		if(isset($this->request->params['named']['name_eng'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name_eng', array_merge(array('label' => __d('admin', 'Name Eng'))));
		if(isset($this->request->params['named']['name_eng'])) echo '</div>';

        if(isset($this->request->params['named']['description_eng'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('description_eng', array_merge(array('label' => __d('admin', 'Full Des'))));
		if(isset($this->request->params['named']['description_eng'])) echo '</div>';
    ?>
    </div>
    <div class="area-language" id="text-japan" style="display:none">
    <?php    
		if(isset($this->request->params['named']['name_jpn'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name_jpn', array_merge(array('label' => __d('admin', 'Name Jpn'))));
		if(isset($this->request->params['named']['name_jpn'])) echo '</div>';

		if(isset($this->request->params['named']['description_jpn'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('description_jpn', array_merge(array('label' => __d('admin', 'Full Des'))));
		if(isset($this->request->params['named']['description_jpn'])) echo '</div>';
	?>
    </div>
	
	<?php
		if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
			echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Image'))));
		if(isset($this->request->params['named']['image'])) echo '</div>';
		
		if(isset($this->request->params['named']['id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('id', array_merge(array('label' => __d('admin', 'Id'))));
		if(isset($this->request->params['named']['id'])) echo '</div>';
	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save ProductIntro'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>
<script>
$(document).ready(function(){
$('.thumbnail').hide();
$('.fileinput-select').hide();
});
</script>